package com.jsb.laundry.common.constant;

/**
 * 通用常量信息
 */
public class CommonConstants {
    /**
     * UTF-8 字符集
     */
    public static final String UTF8 = "UTF-8";

    /**
     * GBK 字符集
     */
    public static final String GBK = "GBK";

    /**
     * 升序
     */
    public static final String SORT_ORDER_ASC = "ascend";

    /**
     * 降序
     */
    public static final String SORT_ORDER_DESC = " descend";

    /**
     * 空字符串
     */
    public static final String EMPTY_STR = "";

    /**
     * 限流 redis key
     */
    public static final String RATE_LIMIT_KEY = "rate_limit:";

    /**
     * redis中保存的当天订单数量
     */
    public static final String CURRENT_DAY_PAY_NUM = "CURRENT_DAY_PAY_NUM:";

    /**
     * 30分钟取消订单前缀
     */
    public static final String TIMEOUT30_WAIT_PAY_ORDER = "TIMEOUT30_WAIT_PAY_ORDER:";

    /**
     * 统一订单前缀
     */
    public static final String ORDER_PREFIX = "P";
    /**
     * 活动订单前缀
     */
    public static final String ACTIVITY_ORDER_PREFIX = "A";
    /**
     * vip支付前缀
     */
    public static final String VIP_ORDER_PREFIX = "V";
    /**
     * 校服订单前缀
     */
    public static final String SCHOOL_ORDER_PREFIX = "S";
    /**
     * 月卡支付
     */
    public static final String MONTH_CARD_ORDER_PREFIX = "M";
    /**
     * 支付订单前缀
     */
    public static final String PAY_PREFIX = "T";

    /**
     * 月卡使用时订单前缀
     */
    public static final String MONTH_CARD_USE_PREFIX = "MCU";

    /**
     * 邮费 (20元)
     */
    public static final int POST_PRICE = 2000;
    /**
     * 支付超时时间
     */
    public static final Integer ORDER_TIME_OUT = (1000 * 60) * 30;

    /**
     * 逗号
     */
    public static final String COMMA = ",";

    /**
     * 中线
     */
    public static final String SHORT_LINE = "-";

    /**
     * ||分隔符
     */
    public static final String VERTICAL_LINE = "\\|\\|";
}
